<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
		<meta name="format-detection" content="telephone=no">
		<title></title>
		<link href="libs/weui/weuix.min.css" rel="stylesheet" />
		<link href="libs/swipe/swiper.min.css" rel="stylesheet" />
		<link href="css/common.css" rel="stylesheet"/>
		<link href="css/home.css" rel="stylesheet" />
	</head>
	<body class="page-bg">
		<div class="weui_tab tab-bottom">
			<div class="weui_tab_bd">
				<div id="slider"></div>
				<div class="nav-7">
				</div>
				<div class="sortbox nofixed">
					<div class="weui_grids grids-small">
						<a href="javascript:;" class="grid">
							<p class="weui_grid_label">
								<input type="text" class="sort-txt" value="全类别" id="getCategorys"/>
								<i class="icon icon-drop"></i>
							</p>
						</a>
						<a href="javascript:;" class="grid">
							<p class="weui_grid_label">
								<input type="text" class="sort-txt" value="来源" id="resource" />
								<i class="icon icon-drop"></i>
							</p>
						</a>
						<a href="javascript:;" class="grid" id="lastest">
							<p class="weui_grid_label">
								<span class="txt">最新</span><i class="icon"></i>
							</p>
						</a>
						<a href="javascript:;" class="grid" id="price_sort">
							<p class="weui_grid_label">
								<span class="txt">价格</span><i class="icon icon-sort"></i>
							</p>
						</a>
					</div>
					<input type="hidden" id="type_from" value="0" />
					<input type="hidden" id="type_type" value="0" />
					<input type="hidden" id="type_categoryId"/>
					<input type="hidden" id="totalPage" value=""/>
				</div>
				<div class="weui_panel index_top weui_panel_access">
					<div class="shop-list mt0"></div>
				</div>

			</div>
			<div class="weui_tabbar" id="nav_bar" index="0"></div>
		</div>

	</body>
	<script type="text/javascript" src="libs/zepto/zepto.min.js"></script>
	<script type="text/javascript" src="libs/swipe/swiper.min.js"></script>
	<script type="text/javascript" src="libs/common/picker.js"></script>
	<script type="text/javascript" src="libs/common/updown.js"></script>
	<script type="text/javascript" src="libs/common/lazyimg.js"></script>
	<script type="text/javascript" src="libs/artTemplate/template.js"></script>
	<script type="text/javascript" src="libs/common/select.js"></script>
	<script type="text/javascript" src="js/common.js"></script>
	<script type="text/javascript" src="components/home.js" ></script>
<script type="text/html" id="nav_bar_tpl">
	{{each list as hi}}
	<a href="index.html" class="weui_tabbar_item">
		<div class="weui_tabbar_icon">
			<img class="def" src="imgs/{{hi.enName}}-icon.png" alt="{{hi.zh}}">
			<img class="over" src="imgs/{{hi.enName}}-icon-over.png" alt="{{hi.zh}}">
		</div>
		<p class="weui_tabbar_label">{{hi.zh}}</p>
	</a>
	{{/each}}
</script>
<script type="text/html" id="services_tpl">
	<div class="weui-flex">
		{{each result value index}}
		    {{if index==0}}
				{{each result[index].services value j}}
					<div class="weui-flex-item">
						<a href="{{result[index].services[j].linkUrl}}">
							<img src="{{result[index].services[j].iconUrl}}" alt="" />
							<span>{{result[index].services[j].name}}</span>
						</a>
					</div>
				{{/each}}
			{{/if}}
		    {{if index==1}}
				<div class="weui-flex-item">
					<a href="{{result[index].services[0].linkUrl}}">
						<img src="{{result[index].services[0].iconUrl}}" alt="" />
						<span>{{result[index].services[0].name}}</span>
					</a>
				</div>
		    {{/if}}
		{{/each}}
		<div class="weui-flex-item">
			<a href="service.html">
				<i class="icon icon-right-arr"></i>
			</a>
		</div>
	</div>
</script>
<script type="text/html" id="slider_tpl">
<div class="m-wraper">
	<div class="swiper-container">
		<div class="swiper-wrapper">
			{{each banners value index}}
			<div class="swiper-slide">
				<a href="{{banners[index].linkUrl}}">
					<img src="{{banners[index].imageUrl}}" alt="{{banners[index].name}}"/>
				</a>
			</div>
			{{/each}}
		</div>
		<div class="swiper-pagination"></div>
	</div>
</div>
</script>
<script type="text/html" id="category_list_tpl">
		{{each result value index}}
		<div class="shop-item" categoryid="{{result[index].categoryId}}">
			<div class="shop-head">
				<div class="title">{{result[index].categoryName}}</div>
				<span class="fr">￥{{result[index].price}}</span>
			</div>
			<div class="swiper-container">
				<div class="swiper-wrapper">
					{{each result[index].images value j}}
					<div class="swiper-slide">
						<a href="detail.html?id={{result[index].id}}"><img data-img="{{result[index].images[j].smallUrl}}" src="{{result[index].images[j].smallUrl}}" /></a>
					</div>
					{{/each}}
				</div>
			</div>
			<div class="des-info">{{result[index].desc}}</div>
			<div class="fav-message">
				<a href="javascript:;">收藏<em>{{result[index].favoriteCount}}</em></a><a href="javascript:;">留言<em>{{result[index].commentCount}}</em></a>
			</div>
		</div>
		{{/each}}
</script>

</html>
